package com.cqupt.controller;

import com.cqupt.model.pojo.AllWord;
import com.cqupt.model.vo.Result;
import com.cqupt.model.vo.ResultCodeEnum;
import com.cqupt.service.WordAccService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/wordAcc")
@Tag(name = "获取准确率模块")
public class WordAccController {

    @Resource
    private WordAccService wordAccService;

    @GetMapping("/getAcc")
    @Operation(summary = "获取单词准确率")
    public Result getAcc() {
        Integer acc = wordAccService.getAcc();
        return Result.build(acc, ResultCodeEnum.SUCCESS);
    }
}
